<table border="0" class="gallery_contenttbl" id="gallery_contenttblArticleList">
<?php
$src= "../images/uploads/slide/";
$dirname =  iconv("UTF-8","windows-874",$src);
$path = "";
$count = 0;
if((($files = @scandir($dirname)) && !count($files) <= 2))
{
	$images = scandir($dirname);
	$ignore = Array(".", "..",".svn", "otherfiletoignore");
	$imgname = "";	
	foreach($images as $curimg){			
		if(!in_array($curimg, $ignore)) {				
			if($count==0)
				$imgname = $curimg;
			$count++;
		}
	}
	$path = str_replace("../../","",$src.$imgname);	
}

if($path == ""){
	$path = "../images/uploads/no_image.jpg";
}

echo "<tr valign=\"top\">
		<td>
			<a href=\"#\" onClick=\"slide_imgManage_Onclick()\"><img src=\"$path\" width=\"120\" height=\"100\" /></a>
			<div id=\"album_name\"><a href=\"#\">รูป Slide</a></div>
			<div class=\"pic_count\">จำนวนรูป : $count รูป <br/>ผู้ลง : Smile Plus Technology</div>
		</td>
	  </tr>";
	
$path="";
?>
</table>